package com.caihao.onenote.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caihao.onenote.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 虎哥
 * @since 2021-12-22
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {


    //根据用户名查询用户
    @Select("select * from user where username = #{username}")
    User getUserByUsername(String username);

}
